<div class="sidebar-menu toggle-others fixed">

    <div class="sidebar-menu-inner">

        <header class="logo-env">

            <!-- logo -->
            <div class="logo">
                <a href="/" class="logo-expanded">
                    <img src="/public/images/xyeslogo.png"  width="130" alt="" />
                </a>

                <a href="/" class="logo-collapsed">
                    <img src="/public/images/logo-collapsed@2x.png" width="40" alt="" />
                </a>
            </div>

            <!-- This will toggle the mobile menu and will be visible only on mobile devices -->
            <div class="mobile-menu-toggle visible-xs">
                <a href="#" data-toggle="user-info-menu">
                    <i class="fa-bell-o"></i>
                    <span class="badge badge-success">7</span>
                </a>

                <a href="#" data-toggle="mobile-menu">
                    <i class="fa-bars"></i>
                </a>
            </div>

            <!-- This will open the popup with user profile settings, you can use for any purpose, just be creative -->
            *{<div class="settings-icon">}*
                *{<a href="#" data-toggle="settings-pane" data-animate="true">}*
                    *{<i class="linecons-cog"></i>}*
                *{</a>}*
            *{</div>}*


        </header>



        <ul id="main-menu" class="main-menu">
            <!-- add class "multiple-expanded" to allow multiple submenus to open -->
            <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
            <li menuId="">
                <a href="/">
                    <i class="linecons-cog"></i>
                    <span class="title">首页</span>
                </a>
            </li>
        #{list menuList,as:'menu'}
            #{if menu.business_id>0}
                <li menuId="${menu.business_id}" class="opened ">
                    <a href="${menu.url}">
                        <i class="linecons-cog"></i>
                        <span class="title">${menu.name}</span>
                    </a>
                </li>
            #{/if}
            #{if menu.children.size()>0 }
                <li>
                    <a href="extra-gallery.html">
                        <i class="linecons-beaker"></i>
                        <span class="title"> ${menu.name}</span>
                        <span class="label label-purple pull-right hidden-collapsed">${menu.children.size()}</span>
                    </a>
                    <ul>
                        #{list menu.children,as:'menu_2'}
                            <li menuId="${menu_2?.business_id}">
                                <a href="${menu_2.url}">
                                    <span class="title">${menu_2.name}</span>
                                </a>
                                #{if menu_2.children.size()>0 }
                                    <ul>
                                        #{list menu_2.children,as:'menu_3'}
                                            <li menuId="${menu_2?.business_id}">
                                                <a href="${menu_3.url}">
                                                    <span class="title">${menu_3.name}</span>
                                                </a>

                                            </li>
                                        #{/list}
                                    </ul>
                                #{/if}
                            </li>
                        #{/list}
                    </ul>
                </li>

            #{/if}
        #{/list}
            *{<a href="/BS0006/admin/complaint/trial/index">}*
                *{<i class="linecons-note"></i>}*
                *{<span class="title">投诉管理</span>}*
            *{</a>}*
            *{<li>}*
                *{<a href="ui-panels.html">}*
                    *{<i class="linecons-note"></i>}*
                    *{<span class="title">系统管理</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li >}*
                        *{<a href="/power/admin/AdminBusinessCtrl/loadList">}*
                            *{<span class="title">业务管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li >}*
                        *{<a href="/power/admin/AdminMenuCtrl/menuList">}*
                            *{<span class="title">菜单管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li>}*
                        *{<a href="/power/admin/AdminRoleCtrl/loadRoleList">}*
                            *{<span class="title">角色管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li>}*
                        *{<a href="/power/admin/AdminDeptCtrl/adminDeptList">}*
                            *{<span class="title">部门管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li>}*
                        *{<a href="/power/admin/AdminUserCtrl/loadUserList">}*
                            *{<span class="title">用户管理</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li menuId="1">}*
                *{<a href="/BS0006/admin/weixin/index">}*
                    *{<i class="linecons-shop"></i>}*
                    *{<span class="title">微信管理</span>}*
                *{</a>}*
            *{</li>}*
            *{<li menuId="2">}*
                *{<a href="/BS0007/admin/merchant/index">}*
                    *{<i class="linecons-shop"></i>}*
                    *{<span class="title">场馆管理</span>}*
                *{</a>}*
            *{</li>}*
            *{<li>}*
                *{<a href="ui-panels.html">}*
                    *{<i class="linecons-note"></i>}*
                    *{<span class="title">人员管理</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="3">}*
                        *{<a href="/admin/employee/index">}*
                            *{<span class="title">员工管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="4">}*
                        *{<a href="/BS0008/admin/webuser/index">}*
                            *{<span class="title">会员管理</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li>}*
                *{<a href="mailbox-main.html">}*
                    *{<i class="linecons-mail"></i>}*
                    *{<span class="title">电竞管理</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="5">}*
                        *{<a href="/BS0009/admin/room/index">}*
                            *{<span class="title">包房管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="6">}*
                        *{<a href="/BS0010/admin/room/plane">}*
                            *{<span class="title">平面列表</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="7">}*
                        *{<a href="/BS0011/admin/room/endTimeing">}*
                            *{<span class="title">价格设置</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="roomBook">}*
                        *{<a href="/BS0012/admin/room/book">}*
                            *{<span class="title">线下预约</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li>}*
                *{<a href="tables-basic.html">}*
                    *{<i class="linecons-database"></i>}*
                    *{<span class="title">健身管理</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="8">}*
                        *{<a href="/BS0013/admin/fitness/index">}*
                            *{<span class="title">健身类型</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="9">}*
                        *{<a href="/BS0014/admin/coach/index">}*
                            *{<span class="title">私教管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="10">}*
                        *{<a href="/BS0027/admin/policy/index">}*
                            *{<span class="title">价格设置</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li>}*
                *{<a href="mailbox-main.html">}*
                    *{<i class="linecons-mail"></i>}*
                    *{<span class="title">课程管理</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="11">}*
                        *{<a href="/BS0015/admin/curriculumType/index">}*
                            *{<span class="title">课程类型管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="12">}*
                        *{<a href="/BS0016/admin/curriculum/index">}*
                            *{<span class="title">课程管理</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li>}*
                *{<a href="extra-gallery.html">}*
                    *{<i class="linecons-beaker"></i>}*
                    *{<span class="title">水吧管理</span>}*
                *{<span class="label label-purple pull-right hidden-collapsed">aaa</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="131">}*
                        *{<a href="/BS0017/admin/order/index/PRODUCT/${java.lang.Boolean.TRUE}">}*
                            *{<span class="title">订单管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="13">}*
                        *{<a href="/BS0018/admin/product/type/index">}*
                            *{<span class="title">产品类型</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="14">}*
                        *{<a href="/BS0019/admin/product/index">}*
                            *{<span class="title">产品管理</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="15">}*
                        *{<a href="/BS0020/admin/seat/index">}*
                            *{<span class="title">座位管理</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li menuId="16">}*
                *{<a href="extra-gallery.html">}*
                    *{<i class="linecons-beaker"></i>}*
                    *{<span class="title">充值设置</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li>}*
                        *{<a href="/BS0022/admin/recharge/index">}*
                            *{<span class="title">会员卡充值</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li>}*
                        *{<a href="/manage/recharge/RechargeComboCtrl/rechargeComboList">}*
                            *{<span class="title">套餐设置</span>}*
                        *{</a>}*
                    *{</li>}*

                *{</ul>}*
            *{</li>}*
            *{<li menuId="17">}*
                *{<a href="/BS0017/admin/order/index">}*
                    *{<i class="linecons-globe"></i>}*
                    *{<span class="title">订单管理</span>}*
                *{</a>}*

            *{</li>}*
            *{<li>}*
                *{<a href="charts-main.html">}*
                    *{<i class="linecons-cloud"></i>}*
                    *{<span class="title">报表</span>}*
                *{</a>}*
                *{<ul>}*
                    *{<li menuId="18">}*
                        *{<a href="/BS0024/admin/report/source/index">}*
                            *{<span class="title">订单来源分析</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="19">}*
                        *{<a href="/BS0025/admin/report/paytype/index">}*
                            *{<span class="title">订单支付类型分析</span>}*
                        *{</a>}*
                    *{</li>}*
                    *{<li menuId="20">}*
                        *{<a href="/admin/report/trend/index">}*
                            *{<span class="title">日订单趋势</span>}*
                        *{</a>}*
                    *{</li>}*
                *{</ul>}*
            *{</li>}*
            *{<li>}*
                *{<a href="#">}*
                    *{<i class="linecons-cloud"></i>}*
                    *{<span class="title">设置</span>}*
                *{</a>}*
            *{</li>}*
        </ul>

    </div>

</div>

<script>

    $(function(){
        *{var menuId = '${flash.get("menuId")}';}*
        var menuId = '${menuId}';
        $("li").removeClass("active");
        $("li[menuId='"+menuId+"']").addClass("active");
        $("li[menuId='"+menuId+"']").parent().parent().addClass("active").addClass("opened");
    })

</script>